import { Base } from '../../utils/base.js'

class Login extends Base {
    constructor() {
        super()
    }

    //手机号验证
    checkVerifPhone(parames, callback) {
        let url = "/ddaigo-platform/user/checkVerifPhone";
        this.commonRequest(url, parames, callback);
    }
    //下发验证码
    sendVerifyCode(parames, callback) {
        let url = "/ddaigo-platform/user/sendVerifyCode";
        this.commonRequest(url, parames, callback);
    }
    //登录
    submitVerifyCode(parames, callback) {
        let url = "/ddaigo-platform/user/submitVerifyCode";
        this.commonRequest(url, parames, callback);
    }
    //测试
    getActivityDetail(parames, callback) {
        let url = "/ddaigo-platform/activity/getActivityDetail";
        this.commonRequest(url, parames, callback);
    }

    //注册即登录
    registerUser(parames, callback) {
      let url = "/ddaigo-platform/user/register2Login";
      this.commonRequest(url, parames, callback);
    }
}
module.exports = {
    Login
}